package com.dense.kuiniu.bookborrow.business.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

/**
 * @author Administrator
 * @date 2021/1/25
 */
public class ReaderInfo implements Parcelable {
    @SerializedName("欠费")
    private String arrears;
    @SerializedName("读者证")
    private String readerCode;
    @SerializedName("可借册数")
    private int canBorrowCount;
    @SerializedName("姓名")
    private String name;
    @SerializedName("超期册数")
    private int overdueCount;
    @SerializedName("状态")
    private String state;
    @SerializedName("已借册数")
    private String borrowCount;
    @SerializedName("类型")
    private String type;
    @SerializedName("已借图书条码")
    private String borrowBookCode;
    @SerializedName("有效期")
    private String validity;

    public String getArrears() {
        return arrears;
    }

    public void setArrears(String arrears) {
        this.arrears = arrears;
    }

    public String getReaderCode() {
        return readerCode;
    }

    public void setReaderCode(String readerCode) {
        this.readerCode = readerCode;
    }

    public int getCanBorrowCount() {
        return canBorrowCount;
    }

    public void setCanBorrowCount(int canBorrowCount) {
        this.canBorrowCount = canBorrowCount;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getOverdueCount() {
        return overdueCount;
    }

    public void setOverdueCount(int overdueCount) {
        this.overdueCount = overdueCount;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getBorrowCount() {
        return borrowCount;
    }

    public void setBorrowCount(String borrowCount) {
        this.borrowCount = borrowCount;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getBorrowBookCode() {
        return borrowBookCode;
    }

    public void setBorrowBookCode(String borrowBookCode) {
        this.borrowBookCode = borrowBookCode;
    }

    public String getValidity() {
        return validity;
    }

    public void setValidity(String validity) {
        this.validity = validity;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.arrears);
        dest.writeString(this.readerCode);
        dest.writeInt(this.canBorrowCount);
        dest.writeString(this.name);
        dest.writeInt(this.overdueCount);
        dest.writeString(this.state);
        dest.writeString(this.borrowCount);
        dest.writeString(this.type);
        dest.writeString(this.borrowBookCode);
        dest.writeString(this.validity);
    }

    public ReaderInfo() {
    }

    protected ReaderInfo(Parcel in) {
        this.arrears = in.readString();
        this.readerCode = in.readString();
        this.canBorrowCount = in.readInt();
        this.name = in.readString();
        this.overdueCount = in.readInt();
        this.state = in.readString();
        this.borrowCount = in.readString();
        this.type = in.readString();
        this.borrowBookCode = in.readString();
        this.validity = in.readString();
    }

    public static final Parcelable.Creator<ReaderInfo> CREATOR = new Parcelable.Creator<ReaderInfo>() {
        @Override
        public ReaderInfo createFromParcel(Parcel source) {
            return new ReaderInfo(source);
        }

        @Override
        public ReaderInfo[] newArray(int size) {
            return new ReaderInfo[size];
        }
    };
}